import requests

API_URL = (
    "https://ai.gitee.com/api/inference-api/models/hf-models/Meta-Llama-3-8B-Instruct"
)
headers = {
    "Authorization": "Bearer eyJpc3MiOiJodHRwczovL2FpLmdpdGVlLmNvbSIsInN1YiI6Ijk5MyJ9.fEFtH5qihDOuwSRS0ak_ZKZB9c9DdpAhCZlzL1wSoh7r-e_CplXwBjq8_iuZRBFutyyb4VXC1oPH1CtxrpuaDg",
    "Content-Type": "application/json",
}


def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    return response.json()


output = query({"prompt": "Can you please let us know more details about your "})

print("[[[dev-log]]]>>>>", output)
